package com.wenhui.nzapp.ui.fragment.main;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.fragment.app.Fragment;

import com.wenhui.nzapp.R;
import com.wenhui.nzapp.ui.activity.dinnerqr.DinnerQrIndexActivity;
import com.wenhuitec.productlib.ui.activity.FoodManagerActivity;

public class PersonFragment extends Fragment {
    private Context mContext;

    private LinearLayout shopManagerLinear;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_person, container, false);
        mContext = view.getContext();
        shopManagerLinear = view.findViewById(R.id.shopManagerLinear);
        shopManagerLinear.setOnClickListener(view1 -> {
            startActivity(new Intent(mContext, FoodManagerActivity.class));
        });
        view.findViewById(R.id.dinnerQrBut).setOnClickListener(view1 -> {
            startActivity(new Intent(mContext, DinnerQrIndexActivity.class));
        });
        return view;
    }
}
